<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 
   
   <title>Комментарии</title>
  <?php $this->JQuery()->addJavaScriptFile($this->baseUrl('js/jquery2/js/combobox.js'));?>
</head>   
<body>

<style>
h1 { font-size: 1.2em; margin: .6em 0; }
div#users-contain { width:80%; margin: 20px 0; }
div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
div#users-contain table td { border: 1px solid #eee; padding: .6em 10px; text-align: left;}
.ui-dialog .ui-state-error { padding: .3em; }
.validateTips { border: 1px solid transparent; padding: 0.3em; }

 .ui-combobox {
position: relative;
display: inline-block;
}
.ui-combobox-toggle {
position: absolute;
top: 0;
bottom: 0;
margin-left: -1px;
padding: 0;
/* support: IE7 */
*height: 1.7em;
*top: 0.1em;
}
.ui-combobox-input {
margin: 0;
padding: 0.3em;
width:3em;
}
.ui-menu-item{
width:3em;
}
.ul li{
font-size:1em !important;
}
</style>

	<script type="javascript/text">
		 $(function() {
		var name = $( "#name" ),
		email = $( "#email" ),
		comment = $( "#comment" ),
		created = $( "#created_dt"),
		allFields = $( [] ).add( name ).add( email ).add( password ),
		tips = $( ".validateTips" );
		}
	});




$.post("/admin/comments/index", { name: "John", time: "2pm" } );

</script>

<div id="users-contain" class="ui-widget" style="margin:0 auto; margin-left:300px;">
<table id="users" class="ui-widget ui-widget-content">
<thead>
	<tr class="ui-widget-header"><th colspan="7">Комментарий к статье: <?=$this->title;?></th></tr>
	<?php foreach($this->comments as $c):?>

<tr class="ui-widget-content " border="1">
	<td>Имя:</td><td colspan="6"><?=$c['name'];?></td>
</tr>
<tr>
	<td>Email</td><td colspan="6"><?=$c['email'];?></td>
</tr>
<tr>
	<td>Комментарий</td><td colspan="6"><?=$c['blog_comment'];?></td>
</tr>
<tr class="ui-widget-header">
	<td><a href="<?=$this->url(array('id'=>$c['id']),'admin-comments-edit')?>" title="Редактировать">Редактировать</a></td>
	<td><a href="<?=$this->url(array('id'=>$c['id'],'aid'=>$c['article_id']),'admin-comments-delete')?>" title="Удалить">Удалить</a></td>
	
	<td >Опубликован:
		<select id="combobox">
	 		 <option value="yes">Да</option>
	 		 <option value="no">Нет</option>
		</select>
	</td>

<?php endforeach;?>
	

	
</tr>
</thead>
</table>
</div>

</body>
</html>
